package atm;

import javax.swing.*;
import java.awt.*;

public class ChangePwdPanel extends JPanel {
    private ImageIcon sure = new ImageIcon("images/buttonSure.jpg");
    private JLabel oddPwd = new JLabel("输入旧密码：");
    private JLabel newPwd = new JLabel("输入新密码：");
    private JLabel newPwd1 = new JLabel("确认新密码：");

    private JTextField oldField = new JTextField();
    private JTextField newField = new JTextField();
    private JTextField new1Field = new JTextField();

    private JButton sureBtn = new JButton(sure);
    private Font font = new Font("黑体", Font.BOLD, 20);

    public ChangePwdPanel() {
        this.setLayout(null);
        this.add(sureBtn);
        this.add(oddPwd);
        this.add(oldField);
        this.add(newPwd);
        this.add(newPwd1);
        this.add(newField);
        this.add(new1Field);
        oddPwd.setBounds(300, 200, 120, 50);
        newPwd.setBounds(300, 260, 140, 50);
        sureBtn.setBounds(400, 400, 140, 50);
        oldField.setBounds(400, 200, 140, 50);
        newField.setBounds(400, 260, 140, 50);
        new1Field.setBounds(400, 320, 140, 50);
        newPwd1.setBounds(300, 320, 120, 50);
        oddPwd.setFont(font);
        newPwd.setFont(font);
        newPwd1.setFont(font);


        this.setOpaque(false);
    }
}
